/**
 * Created with BlueStream
 * Date: 13. 6. 2
 * Time: 오후 1:11
 * Writer: 강석민
 */
var cnt = 1;
var panel;
var img;
var addDiv;

window.onload = function(){

    panel = document.getElementById("panel");
    img = document.getElementById("img1");
    setInterval(imgChange,500);
}


function imgChange(){
    cnt++;
    if( cnt > 10 ) cnt = 1;
    img.src = "./img/img"+cnt+".jpg";
    console.log(cnt);
}